﻿@model GC_RF.Site.Models.Account.UserPanelModel
@{
	Layout = null;
}

<div class="user-panel">
	@if (Model != null)
	{
		<ul class="menu">
			@if (Model.IsAuthenticated)
			{
				<li><a href="@(WebBuilder.BuildActionUrl<AccountController>(m => m.Logoff()))" data-toggle="tooltip" data-original-title="ВЫХОД"><i class="fa fa-sign-out"></i></a></li>
				<li><a href="@(WebBuilder.BuildActionUrl<AccountController>(m => m.Settings()))" data-toggle="tooltip" data-original-title="НАСТРОЙКИ"><i class="fa fa-wrench"></i></a></li>
			}
			else
			{
				<li><a href="@(WebBuilder.BuildActionUrl<AccountController>(m => m.Login()))" data-toggle="tooltip" data-original-title="ВХОД"><i class="fa fa-sign-in"></i></a></li>
				<li><a href="@(WebBuilder.BuildActionUrl<AccountController>(m => m.Register()))" data-toggle="tooltip" data-original-title="РЕГИСТРАЦИЯ"><i class="fa fa-user"></i></a></li>
				<li><a href="@(WebBuilder.BuildActionUrl<AccountController>(m => m.ForgotPassword()))" data-toggle="tooltip" data-original-title="ВОССТ. ПАРОЛЬ"><i class="fa fa-unlock"></i></a></li>
			}
		</ul>
		if (Model.IsAuthenticated)
		{
			<img src="../../Content/Images/noavatar.png" />
			<p class="title">Статус:</p>
			<p class="info">@Model.UserRole</p>
			<p class="title">Ник:</p>
			<p class="info">@Model.UserName</p>
		}
	}
</div>